import axios from 'axios'
const axiosInstance = axios.create({
    baseURL : 'http://127.0.0.1:7002',
})

axiosInstance.interceptors.request.use(config =>{
    return config;
})

axiosInstance.interceptors.response.use(config => {
    return config;
})

const GET = function (url,params={}) {
    return axiosInstance.get(url,{
        params
    })
}

const POST = function (url,params={}) {
    return axiosInstance.post(url,params)
}
export default {axiosInstance,GET,POST};